#{extends 'main.html' /} 
#{set title:'Rename Relation'/}

#{if !permitted}
<h1> Sorry, You are not permitted to rename relations between the entities.</h1>
#{/if}

#{else}
<div>
#{list items:relations, as:'relations'}
<div class = "Relation">
<span class = "name">
${relations.relationName}&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<span class = "description">
${relations.description}&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<span class = "related to">
${relations.secondEntity.name}&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<h1>And add the entries you want  </h1>

#{form @Relations.renameRelation(relations.id)}
name: <input type = "text" name = "name" id = "n"/><br />
<input type="submit" value = "rename"> <br />
#{/form}

</div>
#{/list}
</div>

#{/else}

